package com.xxx.idam.sample;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="tb_user")
public class UserDomain implements Serializable {
	private Integer id ;
	private String username;
	private String password;
	private String email;
	
	/**  
	 * id  
	 *  
	 * @return  the id  
	 * @since   CodingExample Ver(编码范例查看) 1.0  
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Integer getId() {
		return id;
	}
	/**  
	 * @param id the id to set  
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**  
	 * username  
	 *  
	 * @return  the username  
	 * @since   CodingExample Ver(编码范例查看) 1.0  
	 */
	@Column(length=18,unique=true)
	public String getUsername() {
		return username;
	}
	/**  
	 * @param username the username to set  
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	/**  
	 * password  
	 *  
	 * @return  the password  
	 * @since   CodingExample Ver(编码范例查看) 1.0  
	 */
	@Column(length=18)
	public String getPassword() {
		return password;
	}
	/**  
	 * @param password the password to set  
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	/**  
	 * email  
	 *  
	 * @return  the email  
	 * @since   CodingExample Ver(编码范例查看) 1.0  
	 */
	@Column(length=255)
	public String getEmail() {
		return email;
	}
	/**  
	 * @param email the email to set  
	 */
	public void setEmail(String email) {
		this.email = email;
	}
}
